<template>
    <el-empty description="无组织，立即创建">
        <el-button style="width: 80px" @click="toCreate">
            <el-icon>
                <Plus/>
            </el-icon>
        </el-button>
    </el-empty>
    <CompanyCreate ref="company" @submit="onSubmit"></CompanyCreate>
</template>
<script setup type="ts">
import {Plus} from '@element-plus/icons-vue'
import CompanyCreate from './create.vue'
import {defineEmits, ref} from "vue";
const emit = defineEmits(["submit"]);

const company = ref();
const toCreate = () => {
    company.value.openDialog();
}
const onSubmit = () => {
    emit("submit");
}
</script>
